<?php
	header("Content-Type: text/html;charset=utf-8");
	include("function/_nosql.php"); //
	include("function/function.php");
	include("_include.user.judge.php");
	$action = chkstr(trim($_REQUEST['action']));
	$id = $_REQUEST['id'];
	$ids = implode(',',$id);
	$count =count($id);
	if($count<=0){
	 echo erro('请选择删除的产品');
	}
	if($action == "orderdel"){//保存订单信息
		$sql = " delete from kboy_order  where id in (".$ids.") and uid = ".$_SESSION['kboy_userid'];
		$res = mysql_query($sql);
		if($res){
		 echo ok('删除成功','user_order.php');
		}
		else{
		 echo erro('服务器内部错误');
		}
	}
	else{
		echo erro("参数错误");
	}
	
?>